%---------------------------------------------------------------------------%
%-                                Packages                                 -%
%---------------------------------------------------------------------------%
\usepackage{CJK,CJKnumb}
\usepackage{url}
\usepackage[backend=biber,style=numeric-comp,sorting=none,gbpub=false,bibstyle=gb7714-2015,citestyle=gb7714-2015,
gbpunctin=false,gbnamefmt=lowercase,
]{biblatex}

\usepackage{amsmath, amsfonts, amssymb}
\usepackage{booktabs}
\usepackage{fontspec}
\usepackage{threeparttable}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{fancyhdr}
\usepackage{latexsym}
\usepackage{mathrsfs}
\usepackage{wasysym}
\usepackage{enumerate}
\usepackage{titletoc}
\usepackage{titlesec}
\usepackage{epstopdf}
\usepackage{caption}
\usepackage{graphicx, subfig}
\usepackage{float}
\usepackage{fancyhdr} 

\usepackage[top=2.6cm, bottom=2.6cm, left=3.2cm, right=2.6cm]{geometry} % use the setting of WPS default 
%---------------------------------------------------------------------------%
%-                                  Fonts                                  -%
%---------------------------------------------------------------------------%
\newcommand{\song}{\CJKfamily{song}}    % 宋体   (simsun.ttf)
\newcommand{\fs}{\CJKfamily{fs}}        %仿宋体  (simfs.ttf)
\newcommand{\kai}{\CJKfamily{kai}}      % 楷体   (simkai.ttf)
\newcommand{\hei}{\CJKfamily{hei}}      % 黑体   (simhei.ttf)
\newcommand{\li}{\CJKfamily{li}}        % 隶书   (simli.ttf)

%---------------------------------------------------------------------------%
%-                                  Sizes                                  -%
%---------------------------------------------------------------------------%
\newcommand{\chuhao}{\fontsize{42pt}{\baselineskip}\selectfont}
\newcommand{\xiaochuhao}{\fontsize{36pt}{\baselineskip}\selectfont}
\newcommand{\yihao}{\fontsize{28pt}{\baselineskip}\selectfont}
\newcommand{\erhao}{\fontsize{21pt}{\baselineskip}\selectfont}
\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont}
\newcommand{\sanhao}{\fontsize{15.75pt}{\baselineskip}\selectfont}
\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont}
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont}
\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont}
\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont}
\newcommand{\liuhao}{\fontsize{7.875pt}{\baselineskip}\selectfont}
\newcommand{\qihao}{\fontsize{5.25pt}{\baselineskip}\selectfont}
%---------------------------------------------------------------------------%
%-                               Chinesization                             -%
%---------------------------------------------------------------------------%
\newtheorem{theorem}{\hskip 2em定理}[section]
\newtheorem{definition}{\hskip 2em定义}[section]
\newtheorem{exam}{\hskip 2em例}[section]
\newtheorem{proof}{{\it \hskip 2em\textbf{证明}}}
\newtheorem{solution}{{\it \hskip 2em\textbf{解}}}
\renewcommand{\tablename}{\songti 表}
\renewcommand{\figurename}{\song 图}
\renewcommand{\refname}{\centerline {参考文献}}
\renewcommand{\contentsname}{\fontsize{15.75pt}{\baselineskip}\selectfont \textbf{目~~~~录}}
\renewcommand{\thefootnote}{\arabic{footnote}}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\renewcommand{\thefigure}{\thesection{}.\arabic{figure}}
\renewcommand{\thetable}{\thesection{}.\arabic{table}}
%---------------------------------------------------------------------------%
%-                                公式随章编号                               -%
%---------------------------------------------------------------------------%
\date{}
\makeatletter
\renewcommand*\l@chapter[2]{%
 \ifnum \c@tocdepth >\m@ne
   \addpenalty{-\@highpenalty}%
   \vskip 1.0em \@plus\p@
   \setlength\@tempdima{1.5em}%
   \begingroup
     \parindent \z@ \rightskip \@pnumwidth
     \parfillskip -\@pnumwidth
     \leavevmode \bfseries
     \advance\leftskip\@tempdima
     \hskip -\leftskip
     #1\nobreak\leaders\hbox{$\m@th
       \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
       mu$}\hfill \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
     \penalty\@highpenalty
   \endgroup
 \fi}
\date{}
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\numberwithin{table}{section}
%---------------------------------------------------------------------------%
%-                              Tabular Option                             -%
%---------------------------------------------------------------------------%
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
%---------------------------------------------------------------------------%
%-                              Caption Option                             -%
%---------------------------------------------------------------------------%
\captionsetup[figure]{labelsep=space}
\captionsetup[table]{labelsep=space}
%---------------------------------------------------------------------------%
%-                             Reference Resource                          -%
%---------------------------------------------------------------------------%
\addbibresource{Tex/reference.bib}
%---------------------------------------------------------------------------%
%-                                Page Control                             -%
%---------------------------------------------------------------------------%
\topmargin=0cm \oddsidemargin=0cm \textwidth=15cm
\textheight=22cm
\titlecontents{section}[1em]{\fontsize{12pt}{\baselineskip}\selectfont}{\hspace*{3em}\contentslabel{2em}\ }%
{}{\titlerule*[0.7pc]{$\cdot$}\contentspage\hspace*{1em}}%

\titlecontents{subsection}[1em]{\fontsize{12pt}{\baselineskip}\selectfont}{\hspace*{3em}\contentslabel{2em}\ }%
{}{\titlerule*[0.7pc]{$\cdot$}\contentspage\hspace*{1em}}%

\titlecontents{subsubsection}[1em]{\fontsize{12pt}{\baselineskip}\selectfont}{\hspace*{4em}\contentslabel{2em}\ }%
{}{\titlerule*[0.7pc]{$\cdot$}\contentspage\hspace*{1em}}%
\renewcommand{\baselinestretch}{1.1}